prompt="enter the time in minutes between audible alerts"&Chr(13)&"for once only audible alert enter 0 or press cancel"&Chr(13)&"for no audible alert at all enter -1"
Do
x=InputBox(prompt,"GT3 mail",interval)
Loop until isnumeric(x)=True
interval=CSng(x)
intervalM=interval*60000
savesettings
If mail Then
object.SetTimer 1,intervalM
End If
End If
End Sub
Sub alerton
mail=True
If interval=0 Then
Object_OnTimer1
ElseIf interval>0 Then
Object_OnTimer1
object.SetTimer 1,intervalM
End If
End Sub
Sub alertoff
mail=False
object.killtimer 1
End Sub
Sub Object_OnTimer1'timer for playing alert sounds
End Sub]]></Script><Globals><Editor><PropPane>0</PropPane><EditorLeft>31</EditorLeft><EditorTop>39</EditorTop><EditorRight>1289</EditorRight><EditorBottom>1132</EditorBottom></Editor><Object><LanguageCLSID>{B54F3741-5B07-11CF-A4B0-00AA004A55E8}</LanguageCLSID><ControlCLSID>{00000000-0000-0000-0000-000000000000}</ControlCLSID><ControlObjWidth>64</ControlObjWidth><ControlObjHeight>64</ControlObjHeight><RunState>1</RunState><ManualControlLoad>0</ManualControlLoad><ScriptHostVersion>2</ScriptHostVersion></Object></Globals></DXScript>